home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Updaters / WhiteCap 3.0.4 / WhiteCap Source.sit / WhiteCap Source / Common / math / Headers / Expression.h < prev    next >
MacBinary  |  1999-07-13  |  1.6 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Jul 13 21:53:58 1999, modified Tue Jul 13 21:53:58 1999, creator 'CWIE', type ASCII, 972 bytes "Expression.h" , at 0x44c 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 45 78 70 72 65 73 | 73 69 6f 6e 2e 68 00 00 |..Expres|sion.h..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 03 cc 00 | 00 01 9a b3 b1 9e 36 b3 |........|......6.|
|00000060| b1 9e 36 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..6.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a0 81 00 00 |........|........|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 45 71 75 61 74 69 |#ifndef |__Equati|
|00000090| 6f 6e 5f 5f 0d 23 64 65 | 66 69 6e 65 20 5f 5f 45 |on__.#de|fine __E|
|000000a0| 71 75 61 74 69 6f 6e 5f | 5f 0d 0d 0d 23 69 6e 63 |quation_|_...#inc|
|000000b0| 6c 75 64 65 20 22 55 74 | 69 6c 53 74 72 2e 68 22 |lude "Ut|ilStr.h"|
|000000c0| 0d 23 69 6e 63 6c 75 64 | 65 20 22 45 78 70 72 56 |.#includ|e "ExprV|
|000000d0| 69 72 74 75 61 6c 4d 61 | 63 68 69 6e 65 2e 68 22 |irtualMa|chine.h"|
|000000e0| 0d 0d 63 6c 61 73 73 20 | 45 78 70 72 65 73 73 69 |..class |Expressi|
|000000f0| 6f 6e 44 69 63 74 3b 0d | 0d 0d 63 6c 61 73 73 20 |onDict;.|..class |
|00000100| 45 78 70 72 65 73 73 69 | 6f 6e 20 3a 20 70 72 6f |Expressi|on : pro|
|00000110| 74 65 63 74 65 64 20 45 | 78 70 72 56 69 72 74 75 |tected E|xprVirtu|
|00000120| 61 6c 4d 61 63 68 69 6e | 65 20 7b 0d 09 0d 09 70 |alMachin|e {....p|
|00000130| 75 62 6c 69 63 3a 0d 09 | 0d 09 09 2f 2a 20 4d 61 |ublic:..|.../* Ma|
|00000140| 6b 65 73 20 61 20 63 6f | 70 79 20 6f 66 20 69 6e |kes a co|py of in|
|00000150| 45 78 70 72 20 61 6e 64 | 20 65 61 63 68 20 73 75 |Expr and| each su|
|00000160| 62 73 65 71 75 65 6e 74 | 20 63 61 6c 6c 20 74 6f |bsequent| call to|
|00000170| 20 45 76 61 6c 75 61 74 | 65 28 29 20 62 65 63 6f | Evaluat|e() beco|
|00000180| 6d 65 73 20 65 71 75 69 | 76 69 6c 65 6e 74 20 74 |mes equi|vilent t|
|00000190| 6f 3a 0d 09 09 66 6c 6f | 61 74 20 76 31 20 3d 20 |o:...flo|at v1 = |
|000001a0| 74 68 69 73 2e 45 76 61 | 6c 75 61 74 65 28 29 3b |this.Eva|luate();|
|000001b0| 0d 09 09 66 6c 6f 61 74 | 20 76 32 20 3d 20 69 6e |...float| v2 = in|
|000001c0| 45 78 70 72 2e 45 76 61 | 6c 75 61 74 65 28 29 3b |Expr.Eva|luate();|
|000001d0| 0d 09 09 72 65 74 75 72 | 6e 20 28 20 2a 69 6e 54 |...retur|n ( *inT|
|000001e0| 72 61 6e 73 69 74 69 6f | 6e 4c 69 6e 6b 20 29 20 |ransitio|nLink ) |
|000001f0| 2a 20 76 31 20 2b 20 28 | 20 31 20 2d 20 2a 69 6e |* v1 + (| 1 - *in|
|00000200| 54 72 61 6e 73 69 74 69 | 6f 6e 4c 69 6e 6b 20 29 |Transiti|onLink )|
|00000210| 20 2a 20 76 32 3b 20 20 | 2a 2f 09 0d 09 09 2f 2f | * v2; |*/....//|
|00000220| 20 4e 6f 74 65 3a 20 57 | 65 69 67 68 74 28 29 20 | Note: W|eight() |
|00000230| 64 6f 65 73 20 2a 6e 6f | 74 2a 20 75 70 64 61 74 |does *no|t* updat|
|00000240| 65 20 74 68 69 73 20 65 | 78 70 72 65 73 73 69 6f |e this e|xpressio|
|00000250| 6e 20 73 75 63 68 20 74 | 68 61 74 20 63 61 6c 6c |n such t|hat call|
|00000260| 73 20 74 6f 20 49 73 44 | 65 70 65 6e 64 65 6e 74 |s to IsD|ependent|
|00000270| 28 29 20 61 6c 73 6f 20 | 63 68 65 63 6b 20 69 6e |() also |check in|
|00000280| 45 78 70 72 0d 09 09 62 | 6f 6f 6c 09 09 09 09 57 |Expr...b|ool....W|
|00000290| 65 69 67 68 74 28 20 45 | 78 70 72 65 73 73 69 6f |eight( E|xpressio|
|000002a0| 6e 26 20 69 6e 45 78 70 | 72 2c 20 66 6c 6f 61 74 |n& inExp|r, float|
|000002b0| 2a 20 69 6e 54 72 61 6e | 73 69 74 69 6f 6e 4c 69 |* inTran|sitionLi|
|000002c0| 6e 6b 20 29 3b 0d 09 09 | 0d 09 09 62 6f 6f 6c 09 |nk );...|...bool.|
|000002d0| 09 09 09 43 6f 6d 70 69 | 6c 65 28 20 63 6f 6e 73 |...Compi|le( cons|
|000002e0| 74 20 55 74 69 6c 53 74 | 72 26 20 69 6e 53 74 72 |t UtilSt|r& inStr|
|000002f0| 2c 20 45 78 70 72 65 73 | 73 69 6f 6e 44 69 63 74 |, Expres|sionDict|
|00000300| 26 20 69 6e 44 69 63 74 | 20 29 3b 0d 09 09 0d 09 |& inDict| );.....|
|00000310| 09 69 6e 6c 69 6e 65 20 | 66 6c 6f 61 74 09 09 45 |.inline |float..E|
|00000320| 76 61 6c 75 61 74 65 28 | 29 09 7b 20 72 65 74 75 |valuate(|).{ retu|
|00000330| 72 6e 20 45 78 65 63 75 | 74 65 28 29 3b 09 7d 0d |rn Execu|te();.}.|
|00000340| 09 09 0d 09 09 62 6f 6f | 6c 09 09 09 09 49 73 44 |.....boo|l....IsD|
|00000350| 65 70 65 6e 64 65 6e 74 | 28 20 63 68 61 72 2a 20 |ependent|( char* |
|00000360| 69 6e 53 74 72 20 29 3b | 0d 09 09 0d 09 09 76 6f |inStr );|......vo|
|00000370| 69 64 09 09 09 09 41 73 | 73 69 67 6e 28 20 45 78 |id....As|sign( Ex|
|00000380| 70 72 65 73 73 69 6f 6e | 26 20 69 6e 45 78 70 72 |pression|& inExpr|
|00000390| 20 29 3b 0d 09 09 0d 09 | 09 0d 09 70 72 6f 74 65 | );.....|...prote|
|000003a0| 63 74 65 64 3a 0d 09 09 | 55 74 69 6c 53 74 72 09 |cted:...|UtilStr.|
|000003b0| 09 09 09 6d 45 71 75 61 | 74 69 6f 6e 3b 0d 09 09 |...mEqua|tion;...|
|000003c0| 62 6f 6f 6c 09 09 09 09 | 6d 49 73 43 6f 6d 70 69 |bool....|mIsCompi|
|000003d0| 6c 65 64 3b 0d 09 09 0d | 09 09 73 74 61 74 69 63 |led;....|..static|
|000003e0| 20 69 6e 74 09 09 09 43 | 6f 6d 70 69 6c 65 28 20 | int...C|ompile( |
|000003f0| 63 68 61 72 2a 20 69 6e | 53 74 72 2c 20 6c 6f 6e |char* in|Str, lon|
|00000400| 67 20 69 6e 4c 65 6e 2c | 20 45 78 70 72 65 73 73 |g inLen,| Express|
|00000410| 69 6f 6e 44 69 63 74 26 | 20 69 6e 44 69 63 74 2c |ionDict&| inDict,|
|00000420| 20 45 78 70 72 56 69 72 | 74 75 61 6c 4d 61 63 68 | ExprVir|tualMach|
|00000430| 69 6e 65 26 20 69 6e 56 | 4d 20 29 3b 0d 7d 3b 0d |ine& inV|M );.};.|
|00000440| 0d 0d 0d 0d 0d 0d 23 65 | 6e 64 69 66 00 00 00 00 |......#e|ndif....|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000490| 65 45 47 53 65 6c 65 63 | 74 6f 72 2e 68 22 0d 0d |eEGSelec|tor.h"..|
|000004a0| 23 69 6e 63 6c 75 64 65 | 20 22 43 45 67 44 72 61 |#include| "CEgDra|
|000004b0| 67 54 61 73 6b 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |gTask.h"|.#includ|
|000004c0| 65 20 22 45 67 4f 53 55 | 74 69 6c 73 2e 68 22 0d |e "EgOSU|tils.h".|
|000004d0| 0d 0d 0d 0d 2f 2f 20 53 | 74 61 74 69 63 20 69 6e |....// S|tatic in|
|000004e0| 69 74 61 6c 69 7a 65 72 | 73 2e 2e 2e 0d 69 6e 74 |italizer|s....int|
|000004f0| 20 4c 54 61 62 6c 65 45 | 47 53 65 6c 65 63 74 6f | LTableE|GSelecto|
|00000500| 72 3a 3a 73 4d 65 73 73 | 61 67 65 47 69 76 65 6e |r::sMess|ageGiven|
|00000510| 20 3d 20 66 61 6c 73 65 | 3b 0d 0d 0d 0d 4c 54 61 | = false|;....LTa|
|00000520| 62 6c 65 45 47 53 65 6c | 65 63 74 6f 72 3a 3a 4c |bleEGSel|ector::L|
|00000530| 54 61 62 6c 65 45 47 53 | 65 6c 65 63 74 6f 72 28 |TableEGS|elector(|
|00000540| 20 43 45 47 54 61 62 6c | 65 2a 20 69 6e 54 61 62 | CEGTabl|e* inTab|
|00000550| 6c 65 20 29 20 3a 20 0d | 09 6d 45 67 54 61 62 6c |le ) : .|.mEgTabl|
|00000560| 65 28 20 69 6e 54 61 62 | 6c 65 20 29 2c 0d 09 4c |e( inTab|le ),..L|
|00000570| 54 61 62 6c 65 4d 75 6c | 74 69 53 65 6c 65 63 74 |TableMul|tiSelect|
|00000580| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 03 | 00 04 00 2e 00 0d 02 4d |........|.......M|
|000005b0| 02 8d 00 2e 00 0d 02 4d | 02 8d b3 8c 04 74 00 00 |.......M|.....t..|
|000005c0| 01 5b 00 00 01 5b 00 00 | 00 00 01 00 00 00 00 04 |.[...[..|........|
|000005d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000005e0| 00 00 00 46 04 ee c5 84 | 14 34 00 00 00 1c 00 46 |...F....|.4.....F|
|000005f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000600| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000610| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+